// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_SALES_CONTRACT_DETAIL
// * CreateDate    : 2014-03-27 22:08:54
// * Creater       : CodeSmith
// * LastChangeDate: 2014-03-27 22:08:54
// * LastChanger   : 2014-03-27 22:08:54
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Suzsoft.Smart.Data;
using ESOL.Common.Entity;

namespace ESOL.Business.Sales
{
/// <summary>
    /// SalesContractDetail
    /// </summary>
    public partial class SalesContractDetailBs
    {
        #region GetByID
        /// <summary>
        /// Get Entity
        /// </summary>
        /// <param name="objSalesContractDetailEntity">Entity</param>
        /// <returns>Entity</returns>
        public static SalesContractDetailEntity GetSalesContractDetail(SalesContractDetailEntity objSalesContractDetailEntity)
        {
            return DataAccess.SelectSingle<SalesContractDetailEntity>(objSalesContractDetailEntity);
        }
        #endregion


        #region Insert
        /// <summary>
        /// Insert Data
        /// </summary>
        /// <param name="objSalesContractDetailEntity">Entity</param>
        /// <returns>true Insert Succeed; false Insert Fail</returns>
        public static bool InsertSalesContractDetail(SalesContractDetailEntity objSalesContractDetailEntity)
        {
            return DataAccess.Insert(objSalesContractDetailEntity);
        }

        public static bool InsertSalesContractDetail(List<SalesContractDetailEntity> objSalesContractDetailEntityList)
        {
            return DataAccess.Insert(objSalesContractDetailEntityList);
        }
        #endregion


        #region Update
        /// <summary>
        /// Update Data
        /// </summary>
        /// <param name="objSalesContractDetailEntity">Entity</param>
        /// <returns>true Update Succeed; false Update Fail</returns>
        public static bool UpdateSalesContractDetail(SalesContractDetailEntity objSalesContractDetailEntity)
        {
            return DataAccess.Update(objSalesContractDetailEntity);
        }

        public static bool UpdateSalesContractDetail(List<SalesContractDetailEntity> objSalesContractDetailEntityList)
        {
            return DataAccess.Update<SalesContractDetailEntity>(objSalesContractDetailEntityList);
        }
        #endregion


        #region Delete
        /// <summary>
        /// Delete Data
        /// </summary>
        /// <param name="objSalesContractDetailEntity">Entity</param>
        /// <returns>true Delete Succeed; false Delete Fail</returns>
        public static bool DeleteSalesContractDetail(SalesContractDetailEntity objSalesContractDetailEntity)
        {
            return DataAccess.Delete(objSalesContractDetailEntity);
        }

        public static bool DeleteSalesContractDetail(List<SalesContractDetailEntity> objSalesContractDetailEntityList)
        {
            return DataAccess.Delete<SalesContractDetailEntity>(objSalesContractDetailEntityList);
        }
        #endregion


        #region GetAll
        /// <summary>
        /// Get All Data
        /// </summary>
        /// <returns>Back All Data<returns>
        public static DataSet GetSalesContractDetailAll()
        {
            return DataAccess.SelectAllDataSet<SalesContractDetailEntity>();
        }
        /// <summary>
        /// Get All Data List
        /// </summary>
        /// <returns>Back All Data List<returns>
        public static List<SalesContractDetailEntity> GetSalesContractDetailAllList()
        {
            return DataAccess.SelectAll<SalesContractDetailEntity>();
        }
        #endregion
	}
	
	
}	

